import { useRouter } from 'vue-router';

const router = useRouter();

export const routerPush = (url, query) => {
	router.push({
		path: url,
		query: { ...query }
	});
};

export const routerReplace = (url, query) => {
	router.replace({
		path: url,
		query: { ...query }
	});
};

export const routerGo = () => {
	router.go(-1);
};